package com.sright.bcard.enterprise.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.common.service.share.dto.page.PageParamRequest;
import com.sright.bcard.enterprise.dal.entity.CompanyDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CompanyDOMapper extends BaseMapper<CompanyDO> {
    int deleteCompany(@Param("id") Long id);

    List<CompanyDO> pageList(PageParamRequest pageParamRequest);

    Integer count(PageParamRequest pageParamRequest);

    List<CompanyDO> selectByCompanyIdList(@Param("companyIdList") List<Long> companyIdList);

    List<CompanyDO> selectByEnterpriseId(Long enterpriseId);
}